how to get the magnitude and direction of resultant force